﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShortcutMenu.Manager
{
    public class DispositionManager : ManagerBase
    {
        private Disposition disposition = new Disposition();
        public DispositionFile DispositionFile { get; set; }

        public DispositionManager()
        { }

        public override void initialize()
        {
            DispositionFile = disposition.LoadDisposition();
        }

        public static void Save()
        {
            var manager = MenuApplication.GetManager<DispositionManager>();
            manager.disposition.WriteDispoition(manager.DispositionFile);
        }


    }
}
